<?php

//===============================
// Center

switch($option) {
    case "category": {
            switch($action) {
                case "add": {
                        $class_property_category_add = 'class="active"';
                        include "category_add.php";
                        break;
                }case "edit": {
                        $rsCatEdit = editUpdateCategory();
                        include "category_edit.php";
                        break;
                }case "del": {
                        deletePropertyCat();
                        $class_property_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                }case "multiAction": {
                        multiActionCategoryProperty();
                        $class_property_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                }case "order": {
                        $arrOrder = orderProperty();
                        $class_property_category_order = 'class="active"';
                        include "order.php";
                        break;
                }case "up": {
                        upOrderPropertyCategory();
                        $class_property_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                }case "down": {
                        downOrderPropertyCategory();
                        $class_property_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                }case "getCategoryType": {
                        getCategoryType();
                        break;
                }default: {
                        $class_property_category_list = 'class="active"';
                        include "category_list.php";
                        break;
                    }
            }
            break;
    }case "geo": {
            switch($action) {
                case "add": {
                        $class_geo_category_add = 'class="active"';
                        include "geo_add.php";
                        break;
                }case "edit": {
                        $rsGeoEdit = editUpdateGeographic();
                        include "geo_edit.php";
                        break;
                }case "del": {
                        deletePropertyGeographic();
                        $class_geo_category_list = 'class="active"';
                        include "geo_list.php";
                        break;
                }case "multiAction": {
                        multiActionGeographicProperty();
                        $class_geo_category_list = 'class="active"';
                        include "geo_list.php";
                        break;
                }case "getGeo": {
                        getAjaxGeographic();
                        break;
                }case "order": {
                        $arrOrder = orderProperty();
                        $class_property_geographic_order = 'class="active"';
                        include "order.php";
                        break;
                }case "up": {
                        upOrderPropertyGeographic();
                        $class_geo_category_list = 'class="active"';
                        include "geo_list.php";
                        break;
                }case "down": {
                        downOrderPropertyGeographic();
                        $class_geo_category_list = 'class="active"';
                        include "geo_list.php";
                        break;
                }default: {
                        $class_geo_category_list = 'class="active"';
                        include "geo_list.php";
                        break;
                    }
            }
            break;
    }case "add": {
            addProperty();
            $class_property_add = 'class="active"';
            include "property_add.php";
            break;
    }case "gen-tags": {
            include ADMIN_MODULE_DIR.'/property/functions/gen-tag/gen-tag-functions.php';
            include "property_gen-tags.php";
            break;
    }case "edit": {
            $rsPropertyEdit = editUpdateProperty();
            include "property_edit.php";
            break;
    }case "detail": {
            include "property_detail.php";
            break;
    }case "gen-tags": {
            include "news_gen-tags.php";
            include ADMIN_MODULE_DIR.'/news/functions/gen-tag/gen-tag-functions.php';
            break;
    }case "del": {
            deleteProperty();
            $class_news_list = 'class="active"';
            include "property_list.php";
            break;
    }case "multiAction": {
            multiActionProperty();
            $class_news_list = 'class="active"';
            include "property_list.php";
            break;
    }default        : {
            $class_property_list = 'class="active"';
            include "property_list.php";
            //server_redirect(ADMIN_URL.'/index.php?module=property&option=category');
            break;
        }
}
?>